/*******************************************************************************
 * Copyright (c) Jerges A. Bello G. 2014. Reservado todos los derechos.
 ******************************************************************************/
package com.jabex.persistence.model;

import com.jabex.common.to.PricesTO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * Created by jaugusto on 27/05/14.
 */
@Entity
@Table(name = "ADA_PRICES")
public class Prices extends Identity {
	@Column(name = "PRICE", unique = false, nullable = true)
	private BigDecimal price;
	@Column(name = "COMMISSION", unique = false, nullable = true)
	private BigDecimal commission;
	@Column(name = "TAX_PRICE", unique = false, nullable = true)
	private BigDecimal taxPrice;
	@Column(name = "TAX_COMMISSION", unique = false, nullable = true)
	private BigDecimal taxCommission;
	@Column(name = "PRICE_SELL", unique = false, nullable = true)
	private BigDecimal priceSell;
	@Column(name = "PRICE_BUY", unique = false, nullable = true)
	private BigDecimal priceBuy;
	@Column(name = "CURRENCY", unique = false, nullable = true)
	private String currency;


	public Prices(PricesTO pricesTO) {
		this.price = pricesTO.getPrice();
		this.commission = pricesTO.getCommission();
		this.taxPrice = pricesTO.getTaxPrice();
		this.taxCommission = pricesTO.getTaxCommission();
		this.priceSell = pricesTO.getPriceSell();
		this.priceBuy = pricesTO.getPriceBuy();
		this.currency = pricesTO.getCurrency();
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}


	public BigDecimal getCommission() {
		return commission;
	}

	public void setCommission(BigDecimal commission) {
		this.commission = commission;
	}


	public BigDecimal getTaxPrice() {
		return taxPrice;
	}

	public void setTaxPrice(BigDecimal taxPrice) {
		this.taxPrice = taxPrice;
	}


	public BigDecimal getTaxCommission() {
		return taxCommission;
	}

	public void setTaxCommission(BigDecimal taxCommission) {
		this.taxCommission = taxCommission;
	}


	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}


	public BigDecimal getPriceSell() {
		return priceSell;
	}

	public void setPriceSell(BigDecimal priceSell) {
		this.priceSell = priceSell;
	}


	public BigDecimal getPriceBuy() {
		return priceBuy;
	}

	public void setPriceBuy(BigDecimal priceBuy) {
		this.priceBuy = priceBuy;
	}
}
